package cn.org.donald.pojo.entity.system;

import cn.org.donald.framework.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author Donald
 * @since 2021-01-09
 */
@ApiModel(value="LogSql对象", description="")
public class LogSql extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "sql语句")
    private String sqlStatement;

    @ApiModelProperty(value = "耗时")
    private Long timeConsume;

    @ApiModelProperty(value = "方法名")
    private String method;

    @ApiModelProperty(value = "服务名称")
    private String application;


    public String getSqlStatement() {
        return sqlStatement;
    }

    public void setSqlStatement(String sqlStatement) {
        this.sqlStatement = sqlStatement;
    }

    public Long getTimeConsume() {
        return timeConsume;
    }

    public void setTimeConsume(Long timeConsume) {
        this.timeConsume = timeConsume;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    @Override
    public String toString() {
        return "LogSql{" +
                "sqlStatement='" + sqlStatement + '\'' +
                ", timeConsume=" + timeConsume +
                ", method='" + method + '\'' +
                ", application='" + application + '\'' +
                '}';
    }
}
